package com.sqx.modules.bidding.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("help_bidding")
public class HelpBidding implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 竞价记录id
     */
    @TableId(type = IdType.INPUT)
    private Long biddingId;
    /**
     * 万能任务id
     */
    private Long helperId;
    /**
     * 竞价人id
     */
    private Long userId;
     /**
     * 0未雇佣 1已雇佣
     */
    private Integer status;
    /**
     * 出价
     */
    private BigDecimal offerMoney;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 3是师傅 2是商家
     */
    private Integer userType;

    /**
     * 报价人昵称
     */
    @TableField(exist = false)
    private String userName;
    /**
     * 报价人头像
     */
    @TableField(exist = false)
    private String avatar;
    /**
     * 报价人性别
     */
    @TableField(exist = false)
    private Integer sex;

    /**
     * 报价人联系电话
     */
    @TableField(exist = false)
    private String phone;



}
